package mesweb.mesweb.mapper.procedure;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import mesweb.mesweb.dto.Procedure.ProductProduceProcedureDto;
import mesweb.mesweb.dto.ProducePlan.ProduceLineBottleneckDto;
import mesweb.mesweb.entity.Procedure.MesProcedure;
import mesweb.mesweb.entity.Procedure.MesProductProcedureBranchProcedure;
import mesweb.mesweb.vo.procecdure.MesProductProcedureBranchProcedureVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 生产支线工序关系
 * @Author: jeecg-boot
 * @Date:   2021-06-26
 * @Version: V1.0
 */
public interface MesProductProcedureBranchProcedureMapper extends BaseMapper<MesProductProcedureBranchProcedure> {
    IPage<MesProductProcedureBranchProcedureVo> getProductProcedureBranchProcedure(Page page, @Param("ew") QueryWrapper queryWrapper);
    List<MesProductProcedureBranchProcedureVo> getProductProcedureBranchProcedure(@Param("ew") QueryWrapper queryWrapper);

    IPage<MesProcedure> getProductProcedureProcedures(Page page, ProductProduceProcedureDto productProduceProcedureDto);
    List<MesProcedure> getProductProcedureProcedures(ProductProduceProcedureDto productProduceProcedureDto);

    List<MesProcedure> getBottleneckProcedure(ProduceLineBottleneckDto productProduceProcedureDto);
}
